//
//  FriendRootCell.swift
//  SwitfTest
//
//  Created by runone02 on 2019/1/10.
//  Copyright © 2019年 liqiyun. All rights reserved.
//

import UIKit

class FriendRootCell: UICollectionViewCell {
    var fridendLabel : UILabel!
    
    override init(frame:CGRect){
        super.init(frame: frame)
        setupUI()
    }
    
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    func setupUI(){
        fridendLabel = UILabel()
        fridendLabel.font = UIFont.systemFont(ofSize: 13)
        fridendLabel.textColor = UIColor.black
        fridendLabel.textAlignment = NSTextAlignment.center
        addSubview(fridendLabel)
        fridendLabel.mas_makeConstraints { (make) in
            make?.centerY.mas_equalTo()(self)
            make?.centerX.mas_equalTo()(self)
            make?.left.mas_equalTo()(self)?.offset()(5)
            make?.right.mas_equalTo()(self)?.offset()(-5)
        }
    
    }
}
